package cn.iocoder.lw.module.core.controller.app.workorder.vo.workorder;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import jakarta.validation.constraints.NotNull;
import java.time.LocalDateTime;

@Schema(description = "用户 APP - 工单新增 Request VO")
@Data
public class AppCoreWorkOrderCreateReqVO {

    @Schema(description = "项目ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "12345")
    @NotNull(message = "项目ID不能为空")
    private Long projectId;

    @Schema(description = "房源ID", example = "12345")
    private Long houseId;

    @Schema(description = "设备编号", example = "12345")
    private Long deviceId;

    @Schema(description = "问题描述", requiredMode = Schema.RequiredMode.REQUIRED, example = "空调不制冷")
    @NotNull(message = "问题描述不能为空")
    private String problemDescription;

    @Schema(description = "上门时间", example = "2023-12-01 14:00:00")
    private LocalDateTime doorToDoorTime;

    @Schema(description = "维修前图片URL", example = "https://example.com/image1.jpg,https://example.com/image2.jpg")
    private String beforeRepairImages;

    @Schema(description = "备注", example = "客户要求尽快处理")
    private String remark;

}